package com.hdu.metrics_center.core;


import com.alibaba.fastjson.JSON;
import lombok.Data;

@Data
public class QueryMetaInfo {
    private String aggField;
    private AggType aggType;
    private QueryFilter queryFilter;


    public static void main(String[] args) {
        QueryFilter queryFilter = new QueryFilter().field("score").lte(60).type(FilterType.RANGE);
        QueryMetaInfo queryMetaInfo = new QueryMetaInfo();
        queryMetaInfo.setQueryFilter(queryFilter);
        queryMetaInfo.setAggType(AggType.COUNT);
        queryMetaInfo.setAggField("id");
        System.out.println(JSON.toJSONString(queryMetaInfo));
    }
}
